package com.etc.test1;

import java.util.List;

import com.xju.entity.Movie;
import com.xju.tools.DBTools;

public class TestQuery1 {

	public static void main(String[] args) {

		String sql = "select mid ,mname,mscore from tbl_movie";
		//Object exQuery(String sql, Class cls, Object... params)
		List<Movie> list = (List<Movie>) DBTools.exQuery(sql,Movie.class);
		
		for (Movie movie : list) {
			System.out.println(movie);
		}
		
	}

}
